package com.example.demo.pattern.builder.burager;

import com.example.demo.pattern.builder.burager.Burger;
import com.example.demo.pattern.builder.pack.Packing;
import com.example.demo.pattern.builder.pack.Wapper;

/**
 * 素食汉堡
 */
public class VegBurger extends Burger {
    @Override
    public String name() {
        return "VegBurger";
    }

    @Override
    public Double price() {
        return 1.0d;
    }

    @Override
    public Packing pack() {
        return new Wapper();
    }

    @Override
    public String resources(String resource) {
        return resource;
    }
}
